/*
 * @Author: Seven
 * @Date: 2021-11-30 15:43:27
 * @LastEditors: Seven
 * @LastEditTime: 2022-05-12 17:30:59
 * @FilePath: \bnch-admin\src\plugins\util.js
 * @Description: 工具插件
 */
import {
    BIG_ZERO,
    BIG_ONE,
    BIG_NINE,
    BIG_TEN
} from '@/utils/bigNumber'
import {
    getTimeGap
} from '@/utils/date'

import {
    generatekey,
    encryptDes,
    decryptDes
} from '@/utils/des'

import {
    getAmount,
    toFixed,
    getDecimalAmount,
    getBalanceAmount,
    getBalanceNumber,
    getFullDisplayBalance,
    formatNumber
} from '@/utils/formatBalance'
export default {
    install: (app, options) => {
        app.prototype.$util = {
            BIG_ZERO,
            BIG_ONE,
            BIG_NINE,
            BIG_TEN,
            getTimeGap,
            generatekey,
            encryptDes,
            decryptDes,
            getAmount,
            toFixed,
            getDecimalAmount,
            getBalanceAmount,
            getBalanceNumber,
            getFullDisplayBalance,
            formatNumber
        }

    }
}